package domain.entity;

import infra.mapper.UserMapper;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.List;

public class ZuoYe {

    UserMapper userMapper=UserTest.getSqlss().openSession().getMapper(UserMapper.class);

    @Test
    public void Test1(){

        User user=new User();
        user.setId(4l);

//        System.out.println(user.toString());

        User user1=userMapper.test1(user);

        System.out.println(user1.toString());
    }

    @Test
    public void Test2(){

        User user=new User();
        user.setAge(null);

//        System.out.println(user.toString());

        List<User> user1=userMapper.test2(user);

        System.out.println(user1.toString());
    }


    @Test
    public void Test3(){

        List<Integer> idList=new ArrayList<>();
        idList.add(3);
        idList.add(5);

        List<User> user1=userMapper.test3(idList);

        System.out.println(user1.toString());
    }

    @Test
    public void Test4(){



        List<User> user1=userMapper.test4();

        System.out.println(user1.toString());
    }


}
